package com.itheima_03;

import java.util.Arrays;

public class Test02 {
    public static void main(String[] args) {
        String s = "33 22 11 44 55";
        String ss[] = s.split(" ");
        int[] arr = new int[ss.length];
        for (int i = 0; i < ss.length; i++) {
            arr[i] = Integer.parseInt(ss[i]);
        }
        Arrays.sort(arr);
        String s1 = arr[0]+" ";
        for (int i = 0; i < arr.length-1; i++) {
             s1 += arr[i+1]+" ";
        }
        System.out.println(s1);

    }
}
